<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script  type="text/javascript" src="http://192.168.3.128:8084/js/jquery.min.js"></script>

<script type="text/javascript" src="http://192.168.3.128:8084/js/qrcode.js"></script>
<input type="hidden" id="logoImg" value="http://192.168.3.128:8084/image/shb_baidu.png"/>


</head>
<body>

<div id="qrcode"></div>
<script type="text/javascript">
var test = "www.baidu.com";

 $(function(){
		
	/* $.ajax({
		type: "GET",
		url: "/index/weixinPay",
		dataType: 'json',
		async:false,
		data: {
		
		},
		success: function(data){
			
			test = data.urlCode;
		}
	}); */
	sss();
}); 
/*  var  width= 150;
 var height =  150;
 var x = width * 0.4;                                                                  
 var y = height * 0.4;                                                                 
 var lw = width * 0.2;                                                                 
 var lh = height * 0.2;   */
 var iconbase64 = 'http://192.168.3.128:8084/image/shb_baidu.png';
function sss(){
	
	var qrcode = new QRCode('qrcode', {
		  text: test,
		  width: 150,
		  height: 150,
		  colorDark: '#000000',
		  colorLight: '#ffffff',
		  correctLevel: QRCode.CorrectLevel.H,
		  src: iconbase64
		 // img_src: 'data:image/png;base64,'+iconbase64,
		  //img_width: 30,
		  //use_canvas: false
		});
	
	 //  $("#qrcode canvas")[0].getContext('2d').drawImage($("#logoImg")[0], x, y, lx, ly); 

}

<!-- <script type="text/javascript">/* 2014/07/19 21:09 */var _qrContent='',_qrLogo='http://www.wwei.cn/static/images/icon/wwei.png',_qrWidth=150,_lgWidth = 32,_lgHeight = 32,_lgBor = 0;if(!_qrContent) var _qrContent =escape(document.location.href);document.write(unescape("%3Cscript src='http://qrcode.leipi.org/js.html?qw="+_qrWidth+"&qc="+escape(_qrContent)+"&ql="+escape(_qrLogo)+"&lw="+_lgWidth+"&lh="+_lgHeight+"&bor="+_lgBor+"' type='text/javascript'%3E%3C/script%3E"));</script>
 --></script>
</body>
</html>